from django.conf.urls import url
from rest_framework import routers

from torts import views
from torts.views import TortViewSet

urlpatterns = [
    url(r'^tortlist/$', views.TortListView.as_view()),
    url(r'^tortadd/$', views.TortAddView.as_view()),
    url(r'^tortdelete/$', views.TortDeleteView.as_view()),
    url(r'^tortupdate/$', views.TortUpdateView.as_view()),
    url(r'^tortupload/$', views.TortUpload.as_view()),
    url(r'^skip/$', views.TestView.as_view()),
    url(r'^ExternalPrivacyPolicy/$', views.external_privacy_policy),
    # url(r'^tort123456/$', TortViewSet.as_view({'get': 'list'})),

]

router = routers.DefaultRouter()

router.register(r'tort123456', views.TortViewSet, base_name='tort123456')

urlpatterns += router.urls